<?php

declare(strict_types=1);

namespace App\Marketing\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $account_type 入口类型
 * @property string $symbol 币种
 * @property string $code 调用码
 * @property string $no 领取码
 * @property int $num 限领数量
 * @property int $status 完成0否1是
 * @property string $start_at 开始时间
 * @property string $end_at 结束时间
 * @property string $min 
 * @property string $max 
 * @property array $config 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class MarketingCashPrize extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'marketing_cash_prize';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'account_type', 'symbol', 'code', 'no', 'num', 'status', 'start_at', 'end_at', 'min', 'max', 'config', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'account_type' => 'integer', 'num' => 'integer', 'status' => 'integer', 'min' => 'decimal:2', 'max' => 'decimal:2', 'config' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
